export default {
  namespaced: true,
  state: {
    ynType: [],
    fixedType: [],
    goodsType: [],
    goodsUnit: [],
    listType: [],
    flowType: [],
    gender: [],
    applyResult: [],
    puchStatus: [],
    prePosition: [],
    postPosition: [],
    posts: [],
    receiveStatus: [],
    userType: [],
    deptFlows: [],
    flowGroups: [],
    reptYears:[],
    reptYears2:[],
  },
  mutations: {
    updateYnType(state, ynType) {
      state.ynType = ynType
    },
    updateFixedType(state, fixedType) {
      state.fixedType = fixedType
    },
    updateGoodsType(state, goodsType) {
      state.goodsType = goodsType
    },
    updateGoodsUnit(state, goodsUnit) {
      state.goodsUnit = goodsUnit
    },
    updateListType(state, listType) {
      state.listType = listType
      state.flowType = listType
    },
    updateFlowType(state, flowType) {
      state.flowType = flowType
      state.listType = flowType
    },
    updateUserSex(state, gender) {
      state.gender = gender
    },
    updateApplyResult(state, applyResult) {
      state.applyResult = applyResult
    },
    updatePuchStatus(state, puchStatus) {
      state.puchStatus = puchStatus
    },
    cachePrePosition(state, prePosition) {
      state.prePosition = prePosition;
    },
    cachePostPosition(state, postPosition) {
      state.postPosition = postPosition;
    },
    cachePosts(state, posts) {
      state.posts = posts;
    },
    cacheReceiveStatus(state, receiveStatus) {
      state.receiveStatus = receiveStatus;
    },
    cacheUserType(state, userType) {
      state.userType = userType;
    },
    cacheDeptFlows(state, deptFlows) {
      state.deptFlows = deptFlows;
    },
    cacheFlowGroups(state, flowGroups) {
      state.flowGroups = flowGroups;
    },
    cacheReptYears(state, years) {
      state.reptYears = years;
    },
    cacheReptYears2(state, years) {
      state.reptYears2 = years;
    },

  }
}
